package _base0;

/**
 * 1486. 数组异或操作
 */
public class No1486 {
    public int xorOperation(int n, int start) {
        int answer = start;
        for (int i = 1; i < n; i++) {
            answer ^= (start + 2 * i);
        }
        return answer;
    }
}
